package com.example.vo;

import java.io.Serializable;

public class SysResultData extends SysResult implements Serializable {


    private static final long serialVersionUID = 4315535467089128552L;


    private Object data;


    public SysResultData() {
        super();
    }

    public SysResultData(Integer status) {
        super(status);
    }

    public SysResultData(Integer status, String msg) {
        super(status, msg);
    }

    public SysResultData(Integer status, String msg, Object data) {
        super(status, msg);
        this.data = data;
    }

    public SysResultData(Integer status, Object data) {
        super(status);
        this.data = data;
    }

    public static SysResultData ok(Object data) {
        return new SysResultData(STATUS_OK, data);
    }

    public static SysResultData build(Integer status, Object data) {
        return new SysResultData(status, data);
    }

    public static SysResultData build(Integer status, String msg, Object data) {
        return new SysResultData(status, msg, data);
    }


    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "SysResultData{" +
                "data=" + data +
                '}';
    }
}
